package com.itany.exchange.service;

import com.github.pagehelper.PageInfo;
import com.itany.exchange.entity.ManagerUser;
import com.itany.exchange.exception.ManagerUserExistsException;
import com.itany.exchange.exception.ManagerUserIdNotException;
import com.itany.exchange.exception.ManagerUserNotExistsException;

/**
 * Author：汤小洋
 * Date：2019-12-19 11:07
 * Description：<描述>
 */

public interface ManagerUserService {

    ManagerUser login(ManagerUser user) throws ManagerUserNotExistsException;

    PageInfo<ManagerUser> findByPage(int pageNum, int pageSize);

    void addUser(ManagerUser managerUser) throws ManagerUserExistsException;

    void modifyUser(ManagerUser user) throws ManagerUserExistsException;

    void deleteUser(Integer id);

    ManagerUser findByUserId(Integer id) throws ManagerUserIdNotException;

}
